package io.renren.entity;

import java.io.Serializable;
import java.util.Date;

	 
	 
	 
	 
	 
	 
	 
	 
	 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.renren.utils.CustomJsonDateDeserializer;
import io.renren.utils.CustomJsonDateSerializer;

	 
	 
	 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.renren.utils.CustomJsonDateDeserializer;
import io.renren.utils.CustomJsonDateSerializer;

	 
	 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.renren.utils.CustomJsonDateDeserializer;
import io.renren.utils.CustomJsonDateSerializer;


/**
 * 微信用户
 * 
 * @author zk
 * @email zk13899@163.com
 * @date 2017-07-18 16:36:24
 */
public class WeixinUser implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//编号
	private Integer id;
	//openId
	private String openid;
	//微信昵称
	private String nickname;
	//性别
	private Integer sex;
	//城市
	private String city;
	//省份
	private String province;
	//国家
	private String country;
	//头像
	private String headimgurl;
	//关注时间
	private Date subscribetime;
	//最后消息正文
	private String lastcontent;
	//最后消息
	private String lastmsg;
	//最后消息时间
	private Date lasttime;
	//sys_user.id
	private Integer userid;
	//创建时间
	private Date createtime;

	/**
	 * 设置：编号
	 */
	  	public void setId(Integer id) {
		this.id = id;
	}
	/**
	 * 获取：编号
	 */
	   	public Integer getId() {
		return id;
	}
	/**
	 * 设置：openId
	 */
	  	public void setOpenid(String openid) {
		this.openid = openid;
	}
	/**
	 * 获取：openId
	 */
	   	public String getOpenid() {
		return openid;
	}
	/**
	 * 设置：微信昵称
	 */
	  	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	/**
	 * 获取：微信昵称
	 */
	   	public String getNickname() {
		return nickname;
	}
	/**
	 * 设置：性别
	 */
	  	public void setSex(Integer sex) {
		this.sex = sex;
	}
	/**
	 * 获取：性别
	 */
	   	public Integer getSex() {
		return sex;
	}
	/**
	 * 设置：城市
	 */
	  	public void setCity(String city) {
		this.city = city;
	}
	/**
	 * 获取：城市
	 */
	   	public String getCity() {
		return city;
	}
	/**
	 * 设置：省份
	 */
	  	public void setProvince(String province) {
		this.province = province;
	}
	/**
	 * 获取：省份
	 */
	   	public String getProvince() {
		return province;
	}
	/**
	 * 设置：国家
	 */
	  	public void setCountry(String country) {
		this.country = country;
	}
	/**
	 * 获取：国家
	 */
	   	public String getCountry() {
		return country;
	}
	/**
	 * 设置：头像
	 */
	  	public void setHeadimgurl(String headimgurl) {
		this.headimgurl = headimgurl;
	}
	/**
	 * 获取：头像
	 */
	   	public String getHeadimgurl() {
		return headimgurl;
	}
	/**
	 * 设置：关注时间
	 */
	  	 @JsonDeserialize(using = CustomJsonDateDeserializer.class) 
	 	public void setSubscribetime(Date subscribetime) {
		this.subscribetime = subscribetime;
	}
	/**
	 * 获取：关注时间
	 */
	   	 @JsonSerialize(using = CustomJsonDateSerializer.class)
	 	public Date getSubscribetime() {
		return subscribetime;
	}
	/**
	 * 设置：最后消息正文
	 */
	  	public void setLastcontent(String lastcontent) {
		this.lastcontent = lastcontent;
	}
	/**
	 * 获取：最后消息正文
	 */
	   	public String getLastcontent() {
		return lastcontent;
	}
	/**
	 * 设置：最后消息
	 */
	  	public void setLastmsg(String lastmsg) {
		this.lastmsg = lastmsg;
	}
	/**
	 * 获取：最后消息
	 */
	   	public String getLastmsg() {
		return lastmsg;
	}
	/**
	 * 设置：最后消息时间
	 */
	  	 @JsonDeserialize(using = CustomJsonDateDeserializer.class) 
	 	public void setLasttime(Date lasttime) {
		this.lasttime = lasttime;
	}
	/**
	 * 获取：最后消息时间
	 */
	   	 @JsonSerialize(using = CustomJsonDateSerializer.class)
	 	public Date getLasttime() {
		return lasttime;
	}
	/**
	 * 设置：sys_user.id
	 */
	  	public void setUserid(Integer userid) {
		this.userid = userid;
	}
	/**
	 * 获取：sys_user.id
	 */
	   	public Integer getUserid() {
		return userid;
	}
	/**
	 * 设置：创建时间
	 */
	  	 @JsonDeserialize(using = CustomJsonDateDeserializer.class) 
	 	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	/**
	 * 获取：创建时间
	 */
	   	 @JsonSerialize(using = CustomJsonDateSerializer.class)
	 	public Date getCreatetime() {
		return createtime;
	}
	@Override
	public String toString() {
		return "WeixinUser [id=" + id + ", openid=" + openid + ", nickname=" + nickname + ", sex=" + sex + ", city="
				+ city + ", province=" + province + ", country=" + country + ", headimgurl=" + headimgurl
				+ ", subscribetime=" + subscribetime + ", lastcontent=" + lastcontent + ", lastmsg=" + lastmsg
				+ ", lasttime=" + lasttime + ", userid=" + userid + ", createtime=" + createtime + "]";
	}
}
